import { ref, computed, type Ref } from 'vue'
import { defineStore } from 'pinia'

interface iLoglist {
    photo: string,
    id: string,
    text: string,
}

export const dialogStore = defineStore('dialog', () => {



    const loglist: Ref<iLoglist[]> = ref([])


    function changeloglist(data: iLoglist) {

        loglist.value.push({
            id: data.id,
            text: data.text,
            photo: data.photo
        })

    }

    return { loglist, changeloglist }
})